package ch.fhnw.kosmonauten.client.gui;

import ch.fhnw.kosmonauten.model.User;

/**
 * Main Klasse um das Login aufzurufen.
 * 
 * @author Fabian Siegrist
 * @author Oliver Freiermuth
 * @author Mikhail Onoufrienko
 * @author Risto Milani
 * @version $Revision: 159 $
 *          File name: $HeadURL: http://iching-kosmonauten.googlecode.com/svn/I-Ching/src/ch/fhnw/kosmonauten/client/gui/LineNote.java $
 *          Last modified:$Date: 2013-05-26 10:42:43 +0000 (Sun, 26 May 2013) $
 *          Last modified by: $Author: molotok.mihon@gmail.com $
 */



// class definition
public class LineNote extends javax.swing.JFrame {

	private User user;
	// constructors
	/**
	 * Creates new form LineNote
	 */
	public LineNote() {
		initComponents();
	}

	/**
	 * @param Hexagramname
	 * @param Linenumber
	 * @param HexagrammID
	 */
	public LineNote(String Hexagramname, String Linenumber, User user) {
		this.user = user;
		this.setTitle("Linien Notiz: " + Linenumber + " Hexagramm: "
				+ Hexagramname.toUpperCase());
		this.toFront();
		this.setAlwaysOnTop(true);

		initComponents();
		this.jTextArea1.setEnabled(true);
		this.jTextArea1.setText(user.displayValue("mw104"));
		this.setVisible(true);
	}

	// methods
	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	/**
	 * 
	 */
	@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jScrollPane1 = new javax.swing.JScrollPane();
		jTextArea1 = new javax.swing.JTextArea();
		//jButton1 = new javax.swing.JButton();

		setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);

		jTextArea1.setColumns(20);
		jTextArea1.setRows(5);
		jScrollPane1.setViewportView(jTextArea1);

		//jButton1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		//jButton1.setText(user.displayValue("mw105"));

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addComponent(jScrollPane1,
						javax.swing.GroupLayout.DEFAULT_SIZE, 400,
						Short.MAX_VALUE)
				/*.addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE,
						javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)*/);
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addComponent(jScrollPane1,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										273,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)/*.addComponent(jButton1)*/));

		pack();
	}// </editor-fold>

	/*private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
		//LineNote speichern
		
	}*/

	// Variables declaration - do not modify
	//private javax.swing.JButton jButton1;
	private javax.swing.JScrollPane jScrollPane1;
	private javax.swing.JTextArea jTextArea1;
	// End of variables declaration
	
	public javax.swing.JTextArea getjTextArea1() {
		return jTextArea1;
	}

	public void setjTextArea1(javax.swing.JTextArea jTextArea1) {
		this.jTextArea1 = jTextArea1;
	}
}
